<extend name="Public/common"/>
<block name="othercss">
</block>
<block name="header">
<div class="header">
    <div class="clearfix box">
        <!--<a class="save">保存</a>-->
        <a class="return" href="{:urlrotue('Member/myorder')}"><i class="return-icon"></i></a>
        <h2>订单详情</h2>
    </div>
</div>
</block>
<block name="body">
<div class="container pt50">
    <!--地址-->
        <div class="vip2_loc">
            <div class="clearfix top">
                <div class="number">{$order.addr_phone}</div>
                <div class="name">收货人：{$order.addr_realname}</div>
            </div>
            <div class="clearfix">
                <div class="loc">收货地址：{$order.addr_province} {$order.addr_city} {$order.addr_area} {$order.addr_address} ,{$order.addr_zip}）
                </div>
                <img src="{$theme_path}/images/icon-loc.png" width="20"/>
            </div>
        </div>
    <!--商品-->
    <div class="vip2_sum">
     <foreach name="goods" item="goods_item">
        <a class="pro-cell clearfix"  href="{:urlrotue('Goods/index',array('id'=>$goods_item['goods_id']))}" >
            <img src="__ROOT__{$goods_item.goods_picture}"/>
            <div class="lans clearfix">
                <div class="right">
                    <div class="price">¥ {$goods_item.goods_price}</div>
                    <div class="number">x {$goods_item.goods_num} </div>
                </div>
                <div class="left">
                    <div class="title twos">{$goods_item.goods_name}</div>
                    <div class="mess">{$goods_item.goods_spec}</div>
                </div>
            </div>
        </a>
      </foreach>
    </div>
    <!--总计-->
    <ul class="vip2_total clearfix">
       
        <li>商品总价<span>¥ {$order.total_cart}</span></li>
    </ul>
    <div class="beizhu">
        <textarea readonly>{$order.remark_member}</textarea>
    </div>
    <div class="wjmm wjmm-sum">
        <dl class="clearfix vheng" id="radio" >
            <dd class="clearfix on"  data-payment='微信'>
                <img src="{$theme_path}/images/yuan-off.png" width="20"/>
                <img src="{$theme_path}/images/yuan-on.png" width="20"/>微信支付
                <input type="radio" name="payment" value="微信" class="radios" checked="checked" />
            </dd>

            <if condition="!$status">
                <dd class="clearfix" data-payment='支付宝'>
                    <img src="{$theme_path}/images/yuan-off.png" width="20"/>
                    <img src="{$theme_path}/images/yuan-on.png" width="20"/>支付宝支付
                    <input type="radio" name="payment" value="支付宝" class="radios" />
                </dd>
            </if>
        </dl>
        <dl>
            <div class="psfangshi clearfix">
                <div class="right">¥ {$order.total_delivery}</div>配送方式：{$order.delivery_type}
            </div>
            <div class="psfangshi  clearfix">配送时间：{$order.delivery_time}
            </div>
        </dl>
        <dl class="psfangshi1">
         <if condition="$order['total_pay_point'] gt 0">
            <dd class="clearfix">
                积分金额
                <div class="lan-right"><span style="color: #dd2727">￥-{$order.total_pay_point}</span></div>
            </dd>
         </if>
         <if condition="$order['total_pay_yhq'] gt 0">
            <dd class="clearfix">使用优惠券
                <div class="lan-right"><span style="color: #dd2727">￥-{$order.total_pay_yhq}</span></div>
            </dd>
        </if>
        </dl>
    </div>
</div>

<div class="footer-loc">
    <div class="js-btn">
   
        <div class="j2">实付款&nbsp;&nbsp;&nbsp;￥&nbsp;<span style="font-size: 18px">{$order.total_need_pay}</span></div>
    </div>
    <a class="new-loc1" href="{:urlrotue('PayWechat/pay',Array('order_id'=>$order['order_id']))}">确认支付</a>
</div>
</block>
<block name="otherjs">
<script>
     $('#radio dd').click(function () {
            $(this).addClass('on').siblings('dd').removeClass('on');
			var payment = $(this).attr('data-payment');
			//alert(payment);
			if(payment=='微信'){
			var goto_url = "{:urlrotue('PayWechat/pay',Array('order_id'=>$order['order_id']))}";
			}else{
				//var goto_url ='#'
			var goto_url = "{:urlrotue('PayAlipay/pay',Array('order_id'=>$order['order_id']))}";
			}
			$('.new-loc1').attr('href',goto_url);
            $('#radio .radios').attr("checked",false);
            $(this).children('.radios').attr("checked","checked");
        })
</script>
</block>
<block name="footer">
</block>

